<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <table border="1">
            <tr>
                <td>Event Type</td>
                <td>Event</td>
            </tr>
            <tr>
                <td>
                    <h:form>
                        <h:dataTable value="#{categoryBean.categoryEntitieses}" var="item">
                    <h:column>
                        <h:commandLink action="#{eventBean.AllEventbyId}">
                            <f:param name="CatId" value="#{item.categoryId}"/>
                            <h:outputText value="#{item.categoryName}"></h:outputText>
                        </h:commandLink>
                    </h:column>
                </h:dataTable>
                        </h:form>
                </td>
                <td>
                    <h:form>
                        <h:dataTable value="#{eventBean.eventEntitieses}" var="item">
                    <h:column>
                        <h:outputText value="#{item.eventName}"></h:outputText>
                    </h:column>
                </h:dataTable>
                    </h:form>
                </td>
            </tr>
        </table>
        
    </h:body>
</html>

